package com.yidu.sanrenxing.crudall.service.impl;

import com.yidu.sanrenxing.crudall.dao.OrdersMapper;
import com.yidu.sanrenxing.crudall.domain.Orders;
import com.yidu.sanrenxing.crudall.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OrdersServiceImpl implements OrdersService {

    @Autowired
    private OrdersMapper ordersMapper;

    @Override
    public List<Orders> selectAll() {
        return null;
    }

    @Override
    public int deleteByPrimaryKey(int orderid) {
        return 0;
    }

    @Override
    public int insert(Orders record) {
        return 0;
    }

    @Override
    public int insertSelective(Orders record) {
        return 0;
    }

    @Override
    public Orders selectByPrimaryKey(int orderid) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(Orders record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(Orders record) {
        return 0;
    }

    @Override
    public List<Orders> getOrderDataByUserId(Integer userId) {
        return ordersMapper.getOrderDataByUserId(userId);
    }

    @Override
    public Integer addOrderMsg(Orders orders) {
        return ordersMapper.addOrderMsg(orders);
    }

    @Override
    public Integer updateOrderStatusByOrderId(String orderId) {
        return ordersMapper.updateOrderStatusByOrderId(orderId);
    }

    @Override
    public Integer updateOrderStatusForCanCel(String orderId) {
        return ordersMapper.updateOrderStatusForCanCel(orderId);
    }
}
